package jhavelogger.parser;

import jhavelogger.models.JHaveLog;
import jhavelogger.models.UnparsedLog;

/**
 * Interface for log parsers.
 * @author Jared Schlicht
 */
public interface LogFactory {
    /**
     * Returns a JHaveLog file from the specified log message
     * @param log the log message to parse
     * @return JHaveLog or null if the log message could not be parsed by this log factory
     */
    public JHaveLog create(UnparsedLog log);
}
